<?php 
if(!defined('THINKAPK_PATH')) exit();
$topscount = 0;
?>
<div class="body">
    <volist name="tops" id="top">
    <?php $topscount++; ?>
    <div class="tops-box box mtop"<?php if($topscount%3==2):?> style="margin:10px 10px 0px 10px;"<?php endif; ?>>
        <h3><span class="more"><a href="{$top.url}" target="_blank" title="{$top.name}下载排行TOP50">更多.</a></span><span style="font-size:14px; color:#FF0000;">{$top.name}总榜</span></h3>
        <div class="content">
        	<?php if(!empty($top['android'])): ?>
        	<ul class="app-tops">
            <volist name="top.android" id="all">
                <li class="on<?php if($key==0):?> none<?php else:?><?php if(($key+1)%2==0):?> odds<?php endif;?><?php endif;?>"><a href="{$all.url}" target="_blank" class="i<?php echo $key+1;?>"><span class="fr">下载：{$all.total}</span>{:sub_str($all['short_title'], 15)}</a></li>
                <li class="cur<?php if($key!=0):?> none<?php endif;?><?php if(($key+1)%2==0):?> odds<?php endif;?>">
                <span class="fr"><a href="{$all.url}" target="_blank" class="down">下载</a></span>
                <a href="{$all.url}" target="_blank" title="{$all.short_title}"><img src="{$all.icon}" class="icon" align="left" /></a>
                <a href="{$all.url}" target="_blank">{:sub_str($all['short_title'], 10)}</a><br />
                已下载：{$all.total}次
                </li>
            </volist>
            </ul>
            <?php else: ?>
            <p style="padding:10px; color:#999999;">该类暂无应用。</p>
            <?php endif; ?>
        </div>
    </div>
    <volist name="top.children" id="children">
    <?php $topscount++; ?>
    <div class="tops-box box mtop"<?php if($topscount%3==2):?> style="margin:10px 10px 0px 10px;"<?php endif; ?>>
        <h3><span class="more"><a href="{$children.url}" target="_blank" title="{$children.name}下载排行TOP50">更多.</a></span>{$children.name}</h3>
        <div class="content">
        	<?php if(!empty($children['android'])): ?>
        	<ul class="app-tops">
            <volist name="children.android" id="all">
                <li class="on<?php if($key==0):?> none<?php else:?><?php if(($key+1)%2==0):?> odds<?php endif;?><?php endif;?>"><a href="{$all.url}" target="_blank" class="i<?php echo $key+1;?>"><span class="fr">下载：{$all.total}</span>{:sub_str($all['short_title'], 15)}</a></li>
                <li class="cur<?php if($key!=0):?> none<?php endif;?><?php if(($key+1)%2==0):?> odds<?php endif;?>">
                <span class="fr"><a href="{$all.url}" target="_blank" class="down">下载</a></span>
                <a href="{$all.url}" target="_blank" title="{$all.short_title}"><img src="{$all.icon}" class="icon" align="left" /></a>
                <a href="{$all.url}" target="_blank">{:sub_str($all['short_title'], 10)}</a><br />
                已下载：{$all.total}次
                </li>
            </volist>
            </ul>
            <?php else: ?>
            <p style="padding:10px; color:#999999;">该类暂无应用。</p>
            <?php endif; ?>
        </div>
    </div>
    </volist>
    </volist>
</div>